package com.lzt.app

/**
  * 配置对象。
  */
object Config {

  //生产环境配置
  var zookeeperHost = "cn03,mcn01,mcn02"

  //kafka配置
  var kafkaServers = "dn02:21005,dn03:21005,dn04:21005,dn05:21005,dn06:21005"
    var kafkaNoticeTopic = "SjtpNotice"

  //以下配置为开发环境, 使用环境变量 SJTP_ENV=dev 表示开发环境, 没有该变量表示生产环境
  if ("dev".equalsIgnoreCase(System.getenv("SJTP_ENV"))) {
    //开发环境配置
    zookeeperHost = "FatServer1"

    kafkaServers = "localhost:9092"
    kafkaNoticeTopic = "spark"
  }

}
